//
//  TutorQuerryMainViewController.m
//  one_mile_01
//
//  Created by 王雅蓉 on 15/10/22.
//  Copyright © 2015年 王雅蓉. All rights reserved.
//

#import "TutorQuerryMainViewController.h"

@interface TutorQuerryMainViewController ()

@end

@implementation TutorQuerryMainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = RGBACOLOR(240, 239, 245, 1.0);
    
    UIView *navigationV = [[UIView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, NAVIGATIONHEIGHT)];
    navigationV.backgroundColor = BACKGROUND_MAIN_COLOR;
    [self.view addSubview:navigationV];
    
    UILabel *titleL = [[UILabel alloc] initWithFrame:NAVIGATION_TITLE_FRAME];
    //    titleL.backgroundColor = [UIColor yellowColor];
    titleL.text = @"订单详情";
    titleL.textAlignment = NSTextAlignmentCenter;
    titleL.font = NAVIGATION_TITLE_FONT;
    titleL.textColor = [UIColor whiteColor];
    [self.view addSubview: titleL];
    
    [self createSubviews];
}

-(void)createSubviews
{
    self.tutorQuerryInfoForTutorVC = [[tutorQueeryInfoViewController alloc] init];
    self.tutorQuerryInfoForTutorVC.title = @"导师订单";
    self.tutorQuerryInfoForTutorVC.view.backgroundColor = [UIColor clearColor];
    
    self.querryInfoForTutorVC = [[TutorQuerryIsStuInfoViewController alloc] init];
    self.querryInfoForTutorVC.title = @"学员订单";
    self.querryInfoForTutorVC.view.backgroundColor = [UIColor clearColor];
    
    self.navController = [[SCNavTabBarController alloc] init];
    self.navController.subViewControllers = @[self.tutorQuerryInfoForTutorVC, self.querryInfoForTutorVC];
    self.navController.showArrowButton = NO;
    [self.navController addParentController:self];
    //[self.navController setNavTabBarColor:[UIColor yellowColor]];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
